package com.siebre.picclife.asynctask.springconfig;

import org.hibernate.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.siebre.picclife.asynctask.service.TaskRepository;
import com.siebre.picclife.asynctask.service.support.DatabaseTaskRepository;

@Configuration
public class TaskRepositoryConfig {
	
	@Bean
	TaskRepository taskRepository(SessionFactory sessionFactory) {
		return new DatabaseTaskRepository(sessionFactory);
	}
}